Kill gtk_tree_view_size_request
authorJohn Lindgren <john.lindgren@aol.com>
Tue, 18 Dec 2012 05:47:07 +0000 (00:47 -0500)
committerBenjamin Otte <otte@redhat.com>
Tue, 15 Jan 2013 13:40:40 +0000 (14:40 +0100)
commitd0e0e489423e424075e7db400a079f533c656c4d
treec0f77ecffc0963a2f6375043d0d372cdf4aea304
parent919499345395fc89e413529598f6f307456cb904
Kill gtk_tree_view_size_request

Splits up size_request() so that the height calculations are only done
when get_preferred_height() is called and the width calculations are
only done when get_preferred_width() is called.  Since
get_preferred_width() does not change the treeview->priv->width value,
treeview->priv->prev_width will always be equal to it and can therefore
be removed.  The only place where prev_width was used is a block in
gtk_tree_view_size_allocate().  This block seems to be adjusting the
horizontal scrollbar to account for treeview->priv->width having been
changed in size_request() and should no longer be necessary.  A similar
block immediately above it seems to already account for the width change
in size_allocate().

https://bugzilla.gnome.org/show_bug.cgi?id=691751
gtk/gtktreeview.c